package cn.app.android.sichuanxiaoke.com.xiaokeapp.activity;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;

import com.lzy.okgo.model.HttpParams;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import cn.app.android.sichuanxiaoke.com.xiaokeapp.R;

public class RechargeToFriendsActivity extends AppCompatActivity {
    @BindView(R.id.tb)
    Toolbar tb;
    @BindView(R.id.people_admin)
    EditText admin;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_recharge_to_friends);
        ButterKnife.bind(this);

        initUI();
    }

    private void initUI() {
        tb.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }
    @OnClick(R.id.nextButton)
    public void OnClick(View view){

        String madmin = admin.getText().toString();

        if(madmin.isEmpty() ){
            Toast.makeText(this,"账户不能为空",Toast.LENGTH_SHORT).show();
            return;
        }

        Intent intent=new Intent(this,EnterMoneyNumberActivity.class);
        intent.putExtra("admin",madmin);
        startActivity(intent);


    }
}
